<?php

class m120527_135319_add_subscription_active_flag extends CDbMigration {
    public function up() {
        $this->addColumn('subscription', 'is_active', 'boolean default 1');
        $this->addColumn('subscription', 'update_time', 'datetime default null');
    }

    public function down() {
        $this->dropColumn('subscription', 'update_time');
        $this->dropColumn('subscription', 'is_active');
    }
}